<h1>Editing address</h1>

<%= error_messages_for :address %>

<% form_for(:address, :url => address_path(@address), :html => { :method => :put }) do |f| %>
  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', address_path(@address) %> |
<%= link_to 'Back', address_path %>